<%@ page pageEncoding="UTF-8" contentType="text/html;charset=UTF-8"
	language="java" session="false"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@ page import="java.util.List"%>
<%@ page import="sri.proiect.controllers.*"%>
<%@ page import="sri.proiect.search.*"%>
<%@ page import="sri.proiect.models.*"%>

<div id="left">
<div id="subPages">
<form id=searchForm action=SearchController>
<table>
	<tbody>
		<tr>
			<td colspan="3"><input name=searchWord id=searchWord type=text
				size="40"> <input id=doSearch type=submit value=search>
			</td>
		</tr>
	</tbody>
</table>
</form>

</div>
</div>
<% List<Hotel> hotels = (List<Hotel>) request.getAttribute("searchResult"); 
	%>
<table cellpadding="0" cellspacing="0" width="100%" border="0"
	align="left" background="#fff url(images/bg_main.png) 50% 0 repeat-y">

	<%
		for (int i = 0; i < hotels.size(); i++) {
			Hotel hotel = (Hotel) hotels.get(i);
	%>
	<tr>
		<td>
		<table class='unitate'>

			<td valign='top' width='124'>
			<table border=0 cellspacing=3 cellpadding=3 width='100%'>
			</table>
			</td>
			<td valign='top' align='left'>
			<table border=0 cellspacing=3 cellpadding=3 width='100%'
				align='center'>
				<tr>
					<td valign='top' align='left'><a
						href='hotelDetails.jsp?index=<%=i%>'> <b> <font
						color='#BB0000'><%=hotel.getNume()%></font></b></a>&nbsp; , <%=hotel.getNrStele()%>
					stele<br>
					<i><%=hotel.getOras()%>, <%=hotel.getJudet()%></i><br>
					<i><%=hotel.getShortDescription()%></i><br>
				</tr>
			</table>
			</td>
		</table>
		<br>
		</td>
	</tr>
	<tr>
		<td>
		<hr width=100% />
		</td>
	</tr>
	<%
		}
	%>
</table>

